package com.ishansong.ticket.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by saiyin on 15/10/14.
 * 工单账号绑定关系
 */
@Entity
@Table(name = "binding_user")
public class BindingUser implements Serializable {
    private static final long serialVersionUID = 1L;
    //主键id
    private int id;
    public String loginName;
    public String ticketName;
    public String password;
    public int status;
    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    @Column(name = "login_name")
    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }


    @Column(name = "ticket_name")
    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }
    @Column(name = "password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
